package com.Darkra1Zzz.service;

import com.Darkra1Zzz.entity.PageInfo;
import com.Darkra1Zzz.entity.User;

import java.util.List;

public interface UserService {

    //分页查询
    //    public PageInfo<User> findPageInfo(String name, Integer id, Integer phone,
//                                       String email, String vip,Integer pageIndex, Integer pageSize);
    public PageInfo<User> findPageInfo(User user, Integer pageIndex, Integer pageSize);

    public int deleteUser(Integer id);   //通过id删除用户信息

    public int addUser(User user);   //添加用户信息

    public int updateUser(User user); //修改用户信息

    public User findUserById(Integer id);//查询用户信息

    public List<User> getAll();
}
